/*
 * Created Jul 7, 2010
 */
package ltg.ps.phenomena.zooroom;

import java.util.List;

import ltg.ps.api.phenomena.Phenomena;
import ltg.ps.api.phenomena.PhenomenaWindow;

/**
 * TODO Description
 *
 * @author Gugo
 */
public class Trace2Win extends PhenomenaWindow {
	
	private List<Record> data = null;
	private UpdateMode updateMode;
	

	/**
	 * @param windowName
	 */
	public Trace2Win(String windowName) {
		super(windowName);
	}

	
	/* (non-Javadoc)
	 * @see ltg.ps.model.PhenomenaWindow#update(ltg.ps.model.Phenomena)
	 */
	@Override
	public void update(Phenomena p) {
		if(updateMode==UpdateMode.STATE) {
			data = ((ZooRoom)p).getPlayerCurrentState(2).getData();
		} else {
			data = ((ZooRoom)p).getPlayerUpdates(2);
		}
		if (data!= null && !data.isEmpty())
			System.out.println(toXML());	
	}

	
	@Override
	public String toXML() {
		// TODO Auto-generated method stub
		return null;
	}

}
